<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>个人信息</title>
    <script src="js/jquery.min.js"></script>

</head>
<body>
 账户：<span id="login_userName">admin</span><br>
 角色：<span id="login_roleId">无</span><br>

</body>
<script>
    $(function () {
        let loginUser=JSON.parse(localStorage.getItem("robotUser"));
        let loginUserName=loginUser.username;

        $("#login_userName").html(loginUserName);
        if(loginUser.roleId==1){
            $("#login_roleId").html("管理员");
        }else{
            $("#login_roleId").html("操作员");
        }
    });
</script>
</html>
